package com.youbff.task.custom;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 自定义jdbc配置信息
 * @author lixuefeng
 * @email youbff@163.com
 * @time 2018年1月25日 下午2:30:15
 */
@Component
@ConfigurationProperties(prefix="jdbc")
public class JdbcYml {
    private String driverClass;
    private Integer initialSize;
    private Integer minIdle;
    private Integer maxActive;
    private Integer maxWait;
    private Map<String,String> master;
    private Map<String,Map<String,String>> customjdbc ;
    public String getDriverClass() {
        return driverClass;
    }
    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }
    public Integer getInitialSize() {
        return initialSize;
    }
    public void setInitialSize(Integer initialSize) {
        this.initialSize = initialSize;
    }
    public Integer getMinIdle() {
        return minIdle;
    }
    public void setMinIdle(Integer minIdle) {
        this.minIdle = minIdle;
    }
    public Integer getMaxActive() {
        return maxActive;
    }
    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }
    public Integer getMaxWait() {
        return maxWait;
    }
    public void setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
    }
    public Map<String, String> getMaster() {
        return master;
    }
    public void setMaster(Map<String, String> master) {
        this.master = master;
    }
    public Map<String, Map<String, String>> getCustomjdbc() {
        return customjdbc;
    }
    public void setCustomjdbc(Map<String, Map<String, String>> customjdbc) {
        this.customjdbc = customjdbc;
    }
    @Override
    public String toString() {
        return "JdbcConfig [driverClass=" + driverClass + ", initialSize="
                + initialSize + ", minIdle=" + minIdle + ", maxActive="
                + maxActive + ", maxWait=" + maxWait + ", master=" + master
                + ", customjdbc=" + customjdbc + "]";
    }
    
}
